<%@ page language="java" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<table border="0" cellpadding="5" cellspacing="0" height="100%" style="font-family:arial;font-size:8pt" width="100%">
    <tr>
        <td valign="top">
            <html:errors/>
            <html:form action="/adm/Areas.do?method=save">
                <html:hidden property="id"/>
                <p align="center">
                    <logic:equal name="editable" value="true" scope="request">
                        <html:submit value="Grabar" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal"/>
                        <html:reset value="Borrar" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal"/>
                    </logic:equal>
                    <logic:notEqual name="editable" value="true" scope="request">
                        <input type="button" value="Editar" onclick="javascript: location.href='/adm/Areas.do?method=view&amp;editable=true&amp;id=<bean:write name="AreaForm" property="id"/>';" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal">
                        <input type="button" value="Eliminar" onclick="javascript: location.href='/adm/Areas.do?method=delete&amp;id=<bean:write name="AreaForm" property="id"/>';" style="height:18pt;width:25%;background-color:rgb(204, 204, 204);color:rgb(0, 0, 0);font-family: arial; font-size: 9pt;font-weight:normal">
                    </logic:notEqual>
                </p>
                <table border="1" cellpadding="5" cellspacing="0" width="100%" style="font-family:arial;font-size:8pt">
                    <tr>
                        <th align="right" width="30%" style="background-color:#3399ca;color:#ffffff;border-style:none">
                            Area:
                        </th>
                        <td valign="top" width="70%">
                            <logic:equal name="editable" value="true" scope="request">
                                <html:text size="50" maxlength="100" style="border:1px solid #cccccc" property="nombre"/>
                            </logic:equal>
                            <logic:notEqual name="editable" value="true" scope="request">
                                <bean:write name="AreaForm" property="nombre"/>
                            </logic:notEqual>
                        </td>
                    </tr>
                    <tr>
                        <th align="right" width="30%" style="background-color:#3399ca;color:#ffffff;border-style:none">
                            Orden:
                        </th>
                        <td valign="top" width="70%">
                            <logic:equal name="editable" value="true" scope="request">
                                <html:text size="50" maxlength="100" style="border:1px solid #cccccc" property="orden"/>
                            </logic:equal>
                            <logic:notEqual name="editable" value="true" scope="request">
                                <bean:write name="AreaForm" property="orden"/>
                            </logic:notEqual>
                        </td>
                    </tr>
                </table>
            </html:form>
        </td>
    </tr>
</table>

<script language="javascript">
    showLabel("ver");
    document.forms[0].nombre.focus();
</script>